Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable faker instances to be unpickled #1480

Merged
merged 1 commit into from
Jul 12, 2021
Merged

enable faker instances to be unpickled #1480

merged 1 commit into from
Jul 12, 2021

Conversation

fcurella
Copy link
Collaborator

@fcurella fcurella commented Jul 9, 2021

What does this changes

add __getstate__ and __setstate__ emthods to Proxy and Faker classes

What was wrong

Unpickling Faker instances resulted in a RecursionError. See #1479

How this fixes it

Correctly unpickle Fkaer instances by using the state from __dict__

Fixes #1479

@fcurella fcurella merged commit fb50493 into master Jul 12, 2021
@fcurella fcurella deleted the pickle branch July 12, 2021 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RecursionError with spark udf
1 participant